<ion-view title="Users" ng-controller="usercontrol" >
    <ion-nav-buttons side="right">
        <button class=" button button-calm button-fab" ng-click="showaddUser()"><i class="icon ion-plus"></i></button>
    </ion-nav-buttons>
    <ionic-header-bar class=" bar bar-subheader">
            <label class="item-input" >
    <i class="icon ion-ios-search placeholder-icon"></i>
    <input type="search" placeholder="Search" ng-model="searchText">
  </label>
    </ionic-header-bar>
    <ion-content  class="has-subheader">
        <ion-list show-delete="shouldShowDelete">
            <ion-item class="item-icon-left"ng-repeat="user in users | filter:searchText" href="#app/listusers/{{user.id}}" >
            <i class="icon ion-ios-person positive"></i>
                <b>{{user.name}}</b>
            </ion-item>
         </ion-list>
    </ion-content>
</ion-view>

